import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import map from '@/components/map'
import bottom from '@/components/bottom'
import main from '@/components/main'
import personal from '@/components/personalTailor'
import consult from '@/components/consult'
import item2 from '@/components/item2'
import item3 from '@/components/item3'
import item4 from '@/components/item4'
import dongtaixiangqing from '@/components/dongtaixiangqing'
import consultContent from '@/components/consultContent'

import houseRanking from '@/components/houseRanking'
import duibixiangqing from '@/components/duibixiangqing'
import valuation from '@/components/valuation'
import xiangqing from '@/components/xiangqing'
import morexiangqing from '@/components/morexiangqing'
import evaluate from '@/components/evaluate'
import search from '@/components/search'
import user from '@/components/user'
import login from '@/components/login'
import about from '@/components/about'
import message from '@/components/message'

import top from '@/components/tiaojian/top'
import quyu from '@/components/tiaojian/quyu'
import more from '@/components/tiaojian/more'
import price from '@/components/tiaojian/price'
import huxing from '@/components/tiaojian/huxing'

import "@/assets/js/jquery.2.1.4.min.js"
//import "@/assets/js/echarts.js"
//import "@/assets/js/zoom.js"
//import "@/assets/js/previewimage.js"
import '@/assets/css/mui.css'
import '@/assets/css/icons-extra.css'
Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			name: 'index',
			component: index,
			children: [{
				path: '/',
				component: top,
				children: [{
						path: '/houseRanking/top',
						component: quyu,
					},
					{
						path: '/houseRanking/more',
						component: more,
					},
					{
						path: '/houseRanking/price',
						component: price,
					},
					{
						path: '/houseRanking/huxing',
						component: huxing,
					}
				]
			}]
		},
		{
			path: '/bottom',
			name: 'main',
			component: bottom,
			children:[
				{
					path: '/main',
					component: main,
				},
				{
					path: '/personal',
					component: personal,
				},
				{
					path: '/consult',
					name:'consult',
					component: consult,
				},
				{
					path: '/item2',
					component: item2,
				},
				{
					path: '/item3',
					component: item3,
				},
				{
					path: '/item4',
					component: item4,
				},
				{
					path: '/dongtaixiangqing',
          			name:'dongtaixiangqing',
					component: dongtaixiangqing,
				},
				{
					path: '/consultContent',
					component: consultContent,
				},
				{
					path: '/duibixiangqing',
					name:'duibixiangqing',
					component: duibixiangqing
				},
				{
					path: '/houseRanking',
					component: houseRanking,
					children: [{
						path: '/houseRanking',
						component: top,
						children: [{
								path: '/houseRanking/top',
								component: quyu,
							},
							{
								path: '/houseRanking/more',
								component: more,
							},
							{
								path: '/houseRanking/price',
								component: price,
							},
							{
								path: '/houseRanking/huxing',
								component: huxing,
							}
						]
					}]
				},
				{
					path: '/valuation',
					component: valuation,
				},
				{
					path: '/xiangqing',
					component: xiangqing,
				},
				{
					path: '/morexiangqing',
					name:'morexiangqing',
					component: morexiangqing,
				},
				{
					path: '/evaluate',
					name:'evaluate',
					component: evaluate
				},
				{
					path: '/user',
					name:'user',
					component: user,
				},
				{
					path: '/login',
					component: login,
				},
				{
					path: '/about',
					name:'about',
					component: about,
				},
				{
					path: '/message',
					name:'message',
					component: message,

				}
			]
		},
		{
			path: '/search',
			name:'search',
			component:search
		},
		{
			path: '/map',
			name:'map',
			component:map
		}
	]
})
